package org.swidgets.sComboBox;

import com.google.gwt.user.client.rpc.IsSerializable;

public class SComboBoxItem implements IsSerializable, Comparable {
	private String text;
	private String value;

	public SComboBoxItem() {

	}

	public SComboBoxItem(String value, String text) {
		this.value = value;
		this.text = text;
	}

	public int compareTo(Object arg0) {
		return text.compareTo(((SComboBoxItem) arg0).text);
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}	
}